package com.colorlight.cloud.complete.entity.po;

import com.colorlight.cloud.complete.entity.enumerate.AdjustMode;
import com.colorlight.cloud.gateway.api.message.constraint.basics.object.Trans;
import com.colorlight.iot.proto.complete.entity.CompleteEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FunctionAutoBrightnessParam implements Trans<FunctionAutoBrightnessParam, CompleteEntity.FunctionAutoBrightnessParam> {

    /**
     * 是否启用自动亮度
     */
    private Boolean enable;

    /**
     * 当采集不到环境照度时，设置的亮度
     */
    private Integer brightWhenNoBrightSensor;


    private AdjustMode adjustMode;

    /**
     * 曲线调节点，当调节模式有效时
     */
    private AdjustPoint adjustPoint;

    /**
     * 自定义模式的曲线调节点，当调节模式为自定义时有效
     */
    private CustomAdjustPoint customAdjustPoint;

    /**
     * 亮度探头是否有效，设置时不需要这个参数，默认传递true
     */
    private Boolean brightSensorValid;

    /**
     * 当前环境照度，设置时不需要这个参数，默认传递0
     */
    private Integer currentIlluminance;

    /**
     * 当前亮度调整值，设置时不需要这个参数，默认传递0
     */
    private Integer currentBrightness;
}

